<?php
//$res["error"] = "";//错误信息
$res["msg"] = "";//提示信息
if(file_exists($_GET['topath'])){
    unlink($_GET['topath']);
}
if(move_uploaded_file($_FILES['fileField']['tmp_name'], $_GET['topath'])){
    $res["msg"] = "ok";
}else{
    $res["msg"] = "error";
}
echo json_encode($res);
?>